package com.cloudfun.msglisten.common.model.dto.dingtalk;

import com.cloudfun.msglisten.common.constant.DingTalkRobotMsgType;
import lombok.Data;

/**
 * Created by Huqin on 2020/5/13
 */
@Data
public class LinkContent extends AbsContent {

    private String title;
    private String text;
    private String picUrl;
    private String messageUrl;

    public LinkContent(String title, String text, String messageUrl) {
        super(DingTalkRobotMsgType.LINK);
        this.title = title;
        this.text = text;
        this.messageUrl = messageUrl;
    }

    @Override
    public void appendContent(String str) {
        text += str;
    }
}
